<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../lib/vue.js"></script>
</head>
<style>
    *{
        margin: 0;
        padding: 0;
        list-style: none;
    }
    ul{
        display: flex;
    }
    .app ul:first-child li{
        display: flex;
        width: 150px;
        justify-content: center;
        align-items: center;
        background-color: #dda;
        margin: 20px;
        line-height: 40px;
        border-radius: 15px;
    }
    .app ul:last-child li{
        height: 0px;
        margin: 20px;
        width: 150px;
        background-color: rgb(147, 10, 10);
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 32px;
        color: white;
        border-radius: 15px;
        overflow: hidden;
        transition: all 0.3s;
    }
    .b{
        display: none;
    }
</style>
<body>
    <div class="app">
        <ul>
            <li @click='current=0'>
                都市丽人
            </li>
            <li @click='current=1'>
                都市言情
            </li>
            <li @click='current=2'>
                都市异能
            </li>
        </ul>
        <ul>
            <li :style ="{height: current==0?'200px':'0' }">
                都市丽人
            </li>
            <li :style ="{height: current==1?'200px':'0'}">
                都市言情
            </li>
            <li :style ="{height: current==2?'200px':'0'}">
                都市异能
            </li>
        </ul>
    </div>
    <script>
        let vm=new Vue({
            el:'.app',
            data:{
                current:0
                
            },
            
        })
    </script>
</body>
</html>